package cn.ac.ict.debs.testsetGenerator;

import java.util.*;

public class Concept 
{
	public long getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Concept getParent() {
		return parent;
	}
	public void setParent(Concept parent) {
		this.parent = parent;
	}
	public Vector<Concept> getChildSet() {
		return childSet;
	}
	public void addChild(Concept c)
	{
		this.childSet.add(c);
		totalChild ++;
	}
	
	public int getInstId()
	{
		return this.id + this.INST;
	}
	
	public static int totalChild = 0;
	protected final int INST = 2000000;
	private int id = -1;
	private String name = "";
	private Concept parent = null;
	private Vector<Concept> childSet = new Vector<Concept>();
}
